<?php
namespace Common\Models;
use Common\BaseModel;
class  Carousel extends BaseModel
{
	public $res;
	public $expire;
	public function getSource()
		    {
				return "view_home_carousel";
    }
	public function initialize()
	{
		 parent::initialize();
		$this->res['res']=false;
		 $this->expire=60*60*20;
/*
			$this->res['code']=000;
			$this->res['msg']='msg';
			return $this->res;
 empty() intval()
 */
	} 
	public function FindByid($id){
		//$condition['conditions']="is_defalut =1";
	//	$condition['columns']='id';
		$res=$this->findFirstById($id);
		if(empty($res)){
		return false;
		}else{
		return	$res;
		}
	}
	}
